package com.hjx.controller;

import com.hjx.mapper.UserMapper;
import com.hjx.pojo.User;
import com.hjx.utils.MybatisUtil;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;


public class UserController extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        String username = req.getParameter("username");
        System.out.println("username = " + username);

        req.getRequestDispatcher("index.jsp").forward(req,resp);
    }
}
